package com.ruoyi.used.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品类别对象 used_type
 * 
 * @author ruoyi
 * @date 2020-07-11
 */
public class UsedType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类别ID */
    private Long typeId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String typeName;

    /** 类别id（自连接） */
    @Excel(name = "类别id", readConverterExp = "自=连接")
    private Long fid;

    /** 商品图 */
    @Excel(name = "商品图")
    private String typeImg;

    /**类别名称*/
    private String fname;

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public void setTypeId(Long typeId)
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setFid(Long fid) 
    {
        this.fid = fid;
    }

    public Long getFid() 
    {
        return fid;
    }
    public void setTypeImg(String typeImg) 
    {
        this.typeImg = typeImg;
    }

    public String getTypeImg() 
    {
        return typeImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .append("fid", getFid())
            .append("typeImg", getTypeImg())
            .append("fanme",getFname())
            .toString();
    }

}
